package com.ff.xyh.common.entity.useraccess;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 后台用户表
 * </p>
 *
 * @author ff
 * @since 2022-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AccessUser对象", description="后台用户表")
public class AccessUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "用户名 字母加数字 长度不超过20")
    private String username;

    @ApiModelProperty(value = "11位手机号")
    private String phone;

    @ApiModelProperty(value = "密码 长度小于20")
    private String password;

    @ApiModelProperty(value = "昵称 姓名 长度小于100")
    private String nickname;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "性别 0 女 1 男 2 第三类")
    private Integer sex;

    @ApiModelProperty(value = "最后记录的时间（下线时间）")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtLastlog;

    @ApiModelProperty(value = "0: 正常 1: 已删除")
    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
